package com.ujcms.commons.exception;

import com.ujcms.commons.web.Responses;
import org.springframework.http.ResponseEntity;

import java.io.Serial;
import java.io.Serializable;

/**
 * 业务处理异常 指用户输入了非法数据等业务逻辑存在的异常
 *
 * @author 10100
 */
public class BusinessException extends RuntimeException implements Serializable {
    private ResponseEntity<Responses.Body> httpResult;

    @Serial
    private static final long serialVersionUID = 1L;

    public BusinessException() {
    }

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(Throwable cause) {
        super(cause);
    }

    public BusinessException(String message, Throwable cause) {
        super(message, cause);
    }
}